tests: fix testcalendar
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 7 Mar 2014 01:48:07 +0000 (02:48 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 7 Mar 2014 01:50:27 +0000 (02:50 +0100)
Missing argument in gtk_style_context_get(), fooled by varargs.

tests/testcalendar.c

index 84de5ec139c15b877250439f7d024687c5c76823..86386d7afe4dff02f169b19857ba4feb9ffb03fd 100644 (file)
@@ -476,7 +476,8 @@ create_calendar(void)
   size = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
 
   context = gtk_widget_get_style_context (calendar);
-  gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL, &font_desc, NULL);
+  gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL,
+                        GTK_STYLE_PROPERTY_FONT, &font_desc, NULL);
   font = pango_font_description_to_string (font_desc);
   button = gtk_font_button_new_with_font (font);
   g_free (font);